import request from "@/utils/request";

export interface ITags{
    id:number,
    name:string,
    
}


export interface IPlay{
    name:string,
    readonly id:number,
    picUrl: string,
    playcount: number
}





// 获取歌单分类
export const getPlayListApi = () => request.get<any,{tags:ITags[]}>('/playlist/hot')


export const getPlayListtopApi = () => request.get<any,{playlists:IPlay[]}>(`/top/playlist?limit=10&order=hot`)

export const getPlayListHotApi = (tag:string) => request.get<any,{playlists:IPlay[]}>(`/top/playlist?limit=10&order=hot&cat=${tag}`)